Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Invalid INTERVAL value leads to infinite loop.

#33

Hi Rick,

I use ri-cal to parse through many ical feeds and I came across this particular event which causes ri-cal to get into an infinite loop for some reason and eventually will lead to Segmentation Fault. I think this is because RRULE has it's INTERVAL set to 0 since when I change it to 1 it works. I know 0 is not a valid value for INTERVAL since it is not a positive integer and therefore is wrong. I noticed that RiCal::PropertyValue::RecurrenceRule correctly returns 1 for interval if it does not exists. However, I think this should be modified to account for instances when INTERVAL is 0 as well and change it one.

BEGIN:VEVENT
UID:some_uid
SUMMARY:Test Event
DTSTAMP;TZID=America/Denver;VALUE=DATE-TIME:20100816T224517
DTSTART;TZID=America/Denver;VALUE=DATE-TIME:20110209T190000
DTEND;TZID=America/Denver;VALUE=DATE-TIME:20110209T190000
RRULE:FREQ=DAILY;INTERVAL=0;UNTIL=20110211T070000Z;WKST=SU
URL;VALUE=URI:http://testing.ri-cal.com
LOCATION:Some Location
DESCRIPTION:Some Description
END:VEVENT

Thank you for the wonderful library.

Mark

Reported by Mark Lenard · August 17th, 2010 @ 09:26 PM

State: new
Milestone: none
Assigned to: Rick DeNatale Rick DeNatale

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.